import request from '@/utils/request';

// 查询访客列表
export const listVisitor = (params = {}) => { return request.get('/business/visitor/list',{ params }) }
// 新增访客
export const addVisitor = (params = {}) => { return request.post('/business/visitor', params) }
// 查询访客详细信息
export const getVisitorById = (params) => { return request.get(`/business/visitor/${params}`) }
// 删除访客记录
export const deleteVisitor = (params) => { return request.delete('/business/visitor',{ data: params }) }
// 修改访客信息
export const updateVisitor = (params = {}) => { return request.put('/business/visitor', params) }
